package com.tebiecloud.store.server.service;

import com.tebiecloud.store.client.model.entity.StoreFlow;
import com.tebiecloud.common.mybatis.base.service.IBaseService;

import java.util.Map;

/**
 * 门店流水 服务类
 * @author tebie
 * @date 2019-09-15
 */
public interface StoreFlowService extends IBaseService<StoreFlow> {

    /**
     * 记录门店流水和扣减资金
     * @param storeId //用户id
     * @param number //流水号
     * @param amount //交易金额
     * @param type //类型
     * @return
     */
    Map<String,String> saveFlow(Long storeId, Long number, int amount, int type);

}
